/**
 * Copyright (c) 2018 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有，侵权必究！
 */

package io.cw.entity.background;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 教室座位 实体类
 *
 * @author cw
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("rel_room_seat")
public class RelRoomSeatEntity implements Serializable {

	@ApiModelProperty(value = "教室座位ID")
	private String id;

	@ApiModelProperty(value = "教室ID", required = true)
	private String roomId;

	@ApiModelProperty(value = "教室时段ID", required = true)
	private String roomTimeId;

	@ApiModelProperty(value = "座位编号")
	private String seatNo;

	@ApiModelProperty(value = "座位状态(1可预约 2出 3入)")
	private Integer status;

	private Integer isValid;

	@ApiModelProperty(value = "开始时间(yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@TableField(exist = false)
	private Timestamp startTime;

	@ApiModelProperty(value = "结束时间(yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@TableField(exist = false)
	private Timestamp endTime;

}